package com.hobobe.tailor.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/error")
public class ErrorController {
	
	@RequestMapping(value = "/action404", method ={RequestMethod.GET, RequestMethod.POST})
	@ResponseBody  
	public String queryDestinationByBag1(Model model) throws Exception {
		return "404";
	}
	@RequestMapping(value = "/action500", method = {RequestMethod.GET, RequestMethod.POST})
	@ResponseBody  
	public String queryDestinationByBag(Model model) throws Exception {
		return "500";
	}
}
